package com.ys.web.entity;
// Generated 2017-3-7 9:21:28 by Hibernate Tools 4.0.0

import static javax.persistence.GenerationType.IDENTITY;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 推广计划
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "promotion_plan", catalog = "ysanalyze")
public class PromotionPlan implements java.io.Serializable {

	private Integer id;	
	/**代运营公司*/
	private Integer companyId;
	/**代运营公司账号ID*/
	private Integer accountId;
	/**日期*/
	private String date;
	/**推广计划名称*/
	private String planName;
	/**是否被删除(0：未删除，1：已删除)*/
	private byte ifDelete;

	public PromotionPlan() {
	}

	public PromotionPlan(Integer companyId, Integer accountId, String date, String planName, byte ifDelete) {
		this.companyId =companyId;
		this.accountId = accountId;
		this.date = date;
		this.planName = planName;
		this.ifDelete = ifDelete;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)

	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "account_id", nullable = false)
	public Integer getAccountId() {
		return this.accountId;
	}

	public void setAccountId(Integer accountId) {
		this.accountId = accountId;
	}

//	nullable = false, 
	@Column(name = "date", length = 19)
	public String getDate() {
		return this.date;
	}

	public void setDate(String date) {
		this.date = date;
	}

	@Column(name = "plan_name", nullable = false, length = 50)
	public String getPlanName() {
		return this.planName;
	}

	public void setPlanName(String planName) {
		this.planName = planName;
	}

	@Column(name = "if_delete")
	public byte getIfDelete() {
		return this.ifDelete;
	}

	public void setIfDelete(byte ifDelete) {
		this.ifDelete = ifDelete;
	}

	@Column(name = "company_id", nullable = false)
	public Integer getCompanyId() {
		return companyId;
	}

	public void setCompanyId(Integer companyId) {
		this.companyId = companyId;
	}

}
